﻿using System;

namespace _01Enum_01BaiQianBaiJi
{
    class Program
    {
        static void Main(string[] args)
        {
            int z;

            for (int x = 0; x <= 20; x++)
            {
                for (int y = 0; y <= 100 - x; y++)
                {
                    z = 100 - x - y;
                    if ((z % 3 == 0) && (5 * x + 3 * y + z / 3 == 100))
                    {
                        Console.WriteLine($"公鸡{x}只，母鸡{y}只，鸡雏{z}只");
                    }
                }
            }

            Console.ReadKey();
        }
    }
}
